﻿using System;
using System.Diagnostics.CodeAnalysis;
using JTLeigh.Commerce.Spencer.Core.Common.Entities;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace JTLeigh.Commerce.Spencer.Core.Common.UnitTests.Entities
{

	/// <summary>
	/// Unit tests for the <see cref="RelationsBase{TAssociation, TDisassociation}"/> 
	/// class.
	/// </summary>
	[TestClass]
	public class AttributeRelationsBaseFixture
	{

		#region Methods

		#region Constructors

		/// <summary>
		/// Ensures the default constructor initializes the associations and disassociations 
		/// collections.
		/// </summary>
		[TestMethod]
		public void TestConstructor()
		{
			TestRelations relations;

			relations = new TestRelations();
			Assert.IsNotNull(relations.Associations);
			Assert.AreEqual(0, relations.Associations.Count);
			Assert.IsNotNull(relations.Disassociations);
			Assert.AreEqual(0, relations.Disassociations.Count);
		}

		#endregion // Constructors

		#endregion // Methods

	}

}
